<?php  
 // Standard inclusions     
 include("pChart/pData.class");  
 include("pChart/pChart.class");  
  
 // Dataset definition   
 $DataSet = new pData;  
 $DataSet->AddPoint(array(10,2),"Serie1");  
 $DataSet->AddPoint(array("Pagadas","Impagas"),"Serie2");  
 $DataSet->AddAllSeries();  
 $DataSet->SetAbsciseLabelSerie("Serie2");  
  
 // Initialise the graph  
 $Test = new pChart(350,200);  
 $Test->drawFilledRoundedRectangle(7,7,293,193,5,240,240,240);  
 $Test->drawRoundedRectangle(5,5,295,195,5,230,230,230);  
  
 // Draw the pie chart  
 $Test->setFontProperties("Fonts/tahoma.ttf",8);  
 $Test->setShadowProperties(2,2,200,200,200);  
 $Test->drawFlatPieGraphWithShadow($DataSet->GetData(),$DataSet->GetDataDescription(),120,100,60,PIE_PERCENTAGE,10);  
 $Test->drawPieLegend(230,15,$DataSet->GetData(),$DataSet->GetDataDescription(),250,250,250);  
  
 $Test->Render("grafico1.png");  
?><br />
Seleccione su resumen: 
<select>
<option></option>
</select>

<table class="opciones">
<tr>
<td colspan="2" class="opcionesTitulo">Resumen de deudas</td>
</tr>
<tr>
	<td><img src="grafico1.png" /></td>
    <td align="left" valign="top">Total Cuotas pagadas: -<br />
    				Total deudas Impagas:-<br /></td>
</tr>
</table>

<br /><br />
<table class="pieDePagina" width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="19" bgcolor="#CCCCCC"><?php include("contenido/pieDePagina.php");?></td>
  </tr>
</table>